package com.neusoft.neuiotms.dcam.common.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.neuiotms.dcam.common.model.Location;

public interface LocationRepository extends JpaRepository<Location, Long>, CustomizedLocationRepository {

    //    Location findByCode(String root);

    List<Location> findByParentCode(String code);

    List<Location> findByParentId(Long id);

    Location findByCode(String code);

    Location findByName(String name);

}
